package com.aneliya.client;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;

import com.aneliya.model.Message;

public interface IClient {
	public String getUsername();
	public void setUsername(String username);
	
	public void setClientListener(ClientListener listener);
	
	public void setClientSender(ClientSender sender);
	
	public void sendMessage(Message message);
	public void sendKeepAliveMessage();
	
	public void interruptClientListener();
	public void interruptClientSender();
	
	public InputStream getInputStream() throws IOException;
	public OutputStream getOutputStream() throws IOException;
	
	public void start();
}
